package com.yidu.hbatsft.service.impl;

import com.yidu.hbatsft.dao.AtsPlanItemMapper;
import com.yidu.hbatsft.domain.AtsPlanItem;
import com.yidu.hbatsft.service.AtsPlanItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AtsPlanItemServiceImpl implements AtsPlanItemService {

    @Resource
    AtsPlanItemMapper atsPlanItemMapper;

    @Override
    public int insertSelective(AtsPlanItem atsPlanItem) {
        return atsPlanItemMapper.insertSelective(atsPlanItem);
    }

    @Override
    public List<AtsPlanItem> selectItem(String remark) {
        return atsPlanItemMapper.selectItem(remark);
    }

    @Override
    public List<AtsPlanItem> selectItemByPid(String pid,String remark) {
        return atsPlanItemMapper.selectItemByPid(pid,remark);
    }

    @Override
    public int updateByPrimaryKeySelective(AtsPlanItem atsPlanItem) {

        return atsPlanItemMapper.updateByPrimaryKeySelective(atsPlanItem);
    }

    @Override
    public int updateDelete(Integer itemId) {
        return atsPlanItemMapper.updateDelete(itemId);
    }

    @Override
    public int itemUpdte(String remark) {
        return atsPlanItemMapper.itemUpdte(remark);
    }

}
